<?php



class TabCarrerasMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TabCarrerasMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('xaman');

		$tMap = $this->dbMap->addTable('tab_carreras');
		$tMap->setPhpName('TabCarreras');

		$tMap->setUseIdGenerator(false);

		$tMap->addPrimaryKey('ID_CARRERA', 'IdCarrera', 'string', CreoleTypes::VARCHAR, true, 5);

		$tMap->addForeignKey('CF_DECANATO', 'CfDecanato', 'string', CreoleTypes::VARCHAR, 'tab_decanatos', 'ID_DECANATO', true, 5);

		$tMap->addColumn('NOMBRE', 'Nombre', 'string', CreoleTypes::VARCHAR, true, 45);

		$tMap->addColumn('SEMESTRES', 'Semestres', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('REGIMEN', 'Regimen', 'string', CreoleTypes::CHAR, true, 1);

		$tMap->addColumn('ESTATUS', 'Estatus', 'string', CreoleTypes::CHAR, true, 1);

	} 
} 